home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / gpp-1_42.lha / g++-1.42.0 / init_main.h < prev    next >
C/C++ Source or Header  |  1991-10-19  |  2KB  |  51 lines

  1. /* Startup code needed by GCC C++ output code.  */
  2. /* Copyright (C) 1991 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* As a special exception, if you link this file with files
  21.    compiled with GCC to produce an executable, this does not cause
  22.    the resulting executable to be covered by the GNU General Public License.
  23.    This exception does not however invalidate any other reasons why
  24.    the executable file might be covered by the GNU General Public License.  */
  25.  
  26. /*  init_main.h: Originally developed by James Kempf for SUN,
  27.  *               adapted and commented for FSF by Heinz Seidl (hgs@cygnus.com)
  28.  */
  29.  
  30. #ifndef _INIT_MAIN_H
  31. #define _INIT_MAIN_H
  32.  
  33. /* That's the type of the entry point for initialization and finalization */
  34.  
  35. typedef void entry_pt();
  36.  
  37. /* Type of __C/DTOR_LIST__[] */
  38.  
  39. typedef entry_pt * ep_fp;
  40.  
  41. /* The default name of the initialization function(s). */
  42.  
  43. #define INITIALIZE_MODULE      __init           /* one less _ due to assembler */
  44. #define FINALIZE_MODULE        __fini
  45. #define INITIALIZE_MODULE_NAME "___init"
  46. #define FINALIZE_MODULE_NAME   "___finit"
  47. #define INIT_START             __init_start
  48. #define INIT_END               __init_end
  49.  
  50. #endif /* !_INIT_MAIN_H */
  51.